<%@ include file="/common/taglibs.jsp"%>
<link rel="stylesheet" type="text/css" media="screen" href="<c:url value='/css/website.css' />" />
<script type="text/javascript" src="<c:url value='/js/jquery/jquery.numeric.js'/>"></script>
<script type="text/javascript" src="<c:url value='/js/jquery/jquery.formatCurrency-1.4.0.pack.js'/>"></script>
<script type="text/javascript" src="<c:url value='/js/jquery/jquery.tinyscrollbar.min.js'/>"></script>
<script type="text/javascript">
	$(document)
			.ready(
					function() {
						$('#pageTitle')
								.text('<spring:message code="editKnowledgeManagement.heading" />');
						$.validator.addMethod("themeValidation", function(
								value, element) {
							var total = Number($('#themebusassocdev').val()) + Number($('#themelegalregreform').val()) + Number($('#themewomenyouth').val())+ Number($('#themeaccesstoinfo').val())+ Number($('#themeinformalsectorproperty').val())+ Number($('#themecorruption').val())+ Number($('#themecorporategovernance').val())+ Number($('#themedemocraticgovernance').val());
							//var val = value;
							if(($('#themebusassocdev').val().length == 0)  &&  ($('#themelegalregreform').val().length == 0)  &&  ($('#themewomenyouth').val().length == 0)&&  ($('#themeaccesstoinfo').val().length == 0)&&  ($('#themeinformalsectorproperty').val().length == 0)&&  ($('#themecorruption').val().length == 0)&&  ($('#themecorporategovernance').val().length == 0)&&  ($('#themedemocraticgovernance').val().length == 0)){
								return true;
							}
							if (total != 100) {
									return false;
							}
							return true;
						}, "The total % between the 'Project Themes' MUST equal exactly 100%!");
						$.validator.addMethod("lowValidation", function(
								value, element) {
							var total = Number($('#lowpartnership').val()) + Number($('#lowproorgdevelopment').val()) + Number($('#lowcipeadvocacy').val());
							//var val = value;
							if(($('#lowpartnership').val().length == 0) && ($('#lowproorgdevelopment').val().length == 0) && ($('#lowcipeadvocacy').val().length == 0)){
								return true;
							}
							if (total != 100) {
									return false;
							}
							return true;
						}, "The total % between the 'Lines of Work' MUST equal exactly 100%!");
						$("#editKnowledgeManagementForm").validate({
							rules : {	
							}
						});

						$('#themebusassocdev').numeric();
						$('#themelegalregreform').numeric();
						
						$('#themewomenyouth').numeric();
						$('#themeaccesstoinfo').numeric();
						$('#themeinformalsectorproperty').numeric();
						$('#themecorruption').numeric();
						$('#themecorporategovernance').numeric();
						$('#themedemocraticgovernance').numeric();
						
						$('#lowpartnership').numeric();
						$('#lowproorgdevelopment').numeric();
						$('#lowcipeadvocacy').numeric();

						$('#themebusassocdev').change(function() {
							$('#themebusassocdev').rules("add", "themeValidation");
						});
						$('#themelegalregreform').change(function() {
							$('#themelegalregreform').rules("add", "themeValidation");
						});
						$('#themewomenyouth').change(function() {
							$('#themewomenyouth').rules("add", "themeValidation");
						});
						$('#themeaccesstoinfo').change(function() {
							$('#themeaccesstoinfo').rules("add", "themeValidation");
						});
						$('#themeinformalsectorproperty').change(function() {
							$('#themeinformalsectorproperty').rules("add", "themeValidation");
						});
						$('#themecorruption').change(function() {
							$('#themecorruption').rules("add", "themeValidation");
						});
						$('#themecorporategovernance').change(function() {
							$('#themecorporategovernance').rules("add", "themeValidation");
						});
						$('#themedemocraticgovernance').change(function() {
							$('#themedemocraticgovernance').rules("add", "themeValidation");
						});

						$('#lowpartnership').change(function() {
							$('#lowpartnership').rules("add", "lowValidation");
						});
						$('#lowproorgdevelopment').change(function() {
							$('#lowproorgdevelopment').rules("add", "lowValidation");
						});
						$('#lowcipeadvocacy').change(function() {
							$('#lowcipeadvocacy').rules("add", "lowValidation");
						});

						$('#cipeFunds').numeric();

						$('#cipeFunds').formatCurrency('#managementFundsLabel',{colorize: true, negativeFormat: '-%s%n', roundToDecimalPlace: 2});
						showSubstitute(true, 'managementFundsLabel','cipeFunds');

						$('#cipeFunds').blur(function(){
							$('#cipeFunds').formatCurrency('#managementFundsLabel',{colorize: true, negativeFormat: '-%s%n', roundToDecimalPlace: 2});
							showSubstitute(true, 'managementFundsLabel','cipeFunds');
						});

						$('#managementFundsLabel').click(function(){
							showSubstitute(false, 'managementFundsLabel','cipeFunds');
						});

						$('#managementFundsLabel').focus(function() {
							$('#managementFundsLabel').css('display', 'none');
							$('#cipeFunds').css('display', 'block');
							$('#cipeFunds').focus();
						});
						
						$('#editButton').click(function() {
							//loadDiv('content', 'showEditKnowledgeManagement.do?editable=true&id=' + $(this).attr('cipeprojectId'));
							enabledControls();
							loadAllKeywords();
						});

						$('#cancelButton')
						.click(
								function() {
									var ans = confirm('Are you sure you want to cancel editing this record without saving it?');
									if (ans) {
										loadDiv('content', 'showEditKnowledgeManagement.do?id=' + $(this).attr('cipeprojectId'));
										//disabledControls();
									}
								});

						$('#scrollbar1').tinyscrollbar();	

						disabledControls();

					});

	function showSubstitute(show, subId, tobeSubId) {
		if(show) {
			$('#' + subId).css('display', 'block');
			$('#' + tobeSubId).css('display', 'none');
		} else {
			$('#' + subId).css('display', 'none');
			$('#' + tobeSubId).css('display', 'block');
			$('#' + tobeSubId).focus();
		}
	}
	
	function loadAllKeywords() {
		var value = $("#hiddenId").val();
		loadDataViaAjax("loadKeywords.do", {
			"cipeprojectId" : value
		}, parseKeywordsJson);
	}

	function parseKeywordsJson(data) {
		var container = $('#cblist');
		var inputs = container.find('input');
		var html = "";
		if (data) {
			for (p in data) {
				//html += "<input type=\"checkbox\" name=\"selectedKeywords\" value='" + p + "' />" + data[p] + "<br />";
				 html += '<input type="checkbox" id="keywordsId'+p+'" class="input-full-width text_white" value="'+p+'" name="selectedKeywords"/> <label for="keywordsId'+p+'">'+data[p]+'</label>';
			}
		}
		//alert(html);
		container.append($(html));
		$('#scrollbar1').tinyscrollbar();
		//$("#keywordsId checkbox").remove();
		//$("#keywordsId").append(html).trigger("change");
		//$("input[type^='checkbox']").remove();
		//$("#keywordsId").append(html);
	}
	
	function enabledControls() {
		<c:if test="${cipeproject.id !=null and cipeproject.id gt 0}">
			$("#acronym").attr("readonly", "readonly");
			$("#projectID").attr("readonly", "readonly");
			$("#projectTitle").attr("readonly", "readonly");
			$("#projectStartDate").attr("readonly", "readonly");
			$("#projectEndDate").attr("readonly", "readonly");
			$("#managementFunds").attr("readonly","readonly");
	
			$("#partnerId").attr("readonly", "readonly");
			$("#cipeprojecttypeId").attr("readonly", "readonly");
			$("#programOfficerId").attr("readonly", "readonly");
			$("#cipeprojectstatusId").attr("readonly", "readonly");
			$("#regionId").attr("readonly", "readonly");
			$("#countryId").attr("readonly", "disabled");

			$("#organizationtypeId").removeAttr("disabled","disabled");
			$("#projectimpactId").removeAttr("disabled","disabled");
			$("#themebusassocdev").removeAttr("readonly","readonly");
			$("#themelegalregreform").removeAttr("readonly","readonly");
			$("#themewomenyouth").removeAttr("readonly","readonly");
			$("#themeaccesstoinfo").removeAttr("readonly","readonly");
			$("#themeinformalsectorproperty").removeAttr("readonly","readonly");
			$("#themecorruption").removeAttr("readonly","readonly");
			$("#themecorporategovernance").removeAttr("readonly","readonly");
			$("#themedemocraticgovernance").removeAttr("readonly","readonly");
			$("#lowpartnership").removeAttr("readonly","readonly");
			$("#lowproorgdevelopment").removeAttr("readonly","readonly");
			$("#lowcipeadvocacy").removeAttr("readonly","readonly");

			$("input[type^='checkbox']").removeAttr("disabled","disabled");
//			$("input[type^='checkbox']").removeAttr("readonly","readonly");
			$("input[type^='button']").removeAttr("disabled","disabled");
			$("input[type^='submit']").removeAttr("disabled","disabled");
			$("#editButton").attr("disabled","disabled");
		</c:if>
	}

	function disabledControls() {
		<c:if test="${cipeproject.id !=null and cipeproject.id gt 0}">
			$("#acronym").attr("readonly", "readonly");
			$("#projectID").attr("readonly", "readonly");
			$("#projectTitle").attr("readonly", "readonly");
			$("#projectStartDate").attr("readonly", "readonly");
			$("#projectEndDate").attr("readonly", "readonly");
			$("#managementFunds").attr("readonly","readonly");
	
			$("#partnerId").attr("readonly", "readonly");
			$("#cipeprojecttypeId").attr("readonly", "readonly");
			$("#programOfficerId").attr("readonly", "readonly");
			$("#cipeprojectstatusId").attr("readonly", "readonly");
			$("#regionId").attr("readonly", "readonly");
			$("#countryId").attr("readonly", "disabled");
	
			$("#organizationtypeId").attr("disabled","disabled");
			$("#projectimpactId").attr("disabled","disabled");
			$("#themebusassocdev").attr("readonly","readonly");
			$("#themelegalregreform").attr("readonly","readonly");
			$("#themewomenyouth").attr("readonly","readonly");
			$("#themeaccesstoinfo").attr("readonly","readonly");
			$("#themeinformalsectorproperty").attr("readonly","readonly");
			$("#themecorruption").attr("readonly","readonly");
			$("#themecorporategovernance").attr("readonly","readonly");
			$("#themedemocraticgovernance").attr("readonly","readonly");
			$("#lowpartnership").attr("readonly","readonly");
			$("#lowproorgdevelopment").attr("readonly","readonly");
			$("#lowcipeadvocacy").attr("readonly","readonly");
	
			$("input[type^='checkbox']").attr("disabled","disabled");
// 			$("form :input").attr("disabled","disabled");
			$("input[type^='button']").removeAttr("disabled","disabled");
			$("input[type^='submit']").removeAttr("disabled","disabled");
			$("#loginFormSubmit").attr("disabled","disabled");
			$("#cancelButton").attr("disabled","disabled");
			$("#editButton").removeAttr("disabled","disabled");
			$("#hiddenId").removeAttr("disabled","disabled");
		</c:if>
	}
	
	function enableDisabledControls() {
		<c:if test="${cipeproject.id !=null and cipeproject.id gt 0}">
		 <c:choose>
		  <c:when test="${param.editable=='true'}">
		 	$("#acronym").attr("readonly", "readonly");
			$("#projectID").attr("readonly", "readonly");
			$("#projectTitle").attr("readonly", "readonly");
			$("#projectStartDate").attr("readonly", "readonly");
			$("#projectEndDate").attr("readonly", "readonly");
			$("#managementFunds").attr("readonly","readonly");

			$("#partnerId").attr("disabled", "disabled");
			$("#cipeprojecttypeId").attr("disabled", "disabled");
			$("#programOfficerId").attr("disabled", "disabled");
			$("#cipeprojectstatusId").attr("disabled", "disabled");
			$("#regionId").attr("disabled", "disabled");
			$("#countryId").attr("disabled", "disabled");
			
			$("input[type^='button']").removeAttr("disabled","disabled");
			$("input[type^='submit']").removeAttr("disabled","disabled");
			$("#editButton").attr("disabled","disabled");
			//$("#mail-to-trigger").removeAttr("disabled","disabled");
		  </c:when>
		  <c:otherwise>
			$("form :input").attr("disabled","disabled");
			$("input[type^='button']").removeAttr("disabled","disabled");
			$("input[type^='submit']").removeAttr("disabled","disabled");
			$("#loginFormSubmit").attr("disabled","disabled");
			$("#cancelButton").attr("disabled","disabled");
			$("#editButton").removeAttr("disabled","disabled");
			//$("#mail-to-trigger").attr("disabled","disabled");
		  </c:otherwise>
		 </c:choose>
		</c:if>
	}
	
	$(function() {
		var value = $("#projectStartDate").attr("readonly");
		if (value == null) {
			$("#projectStartDate").datepicker();
		}
	});

	$(function() {
		var value = $("#projectEndDate").attr("readonly");
		if (value == null) {
			$("#projectEndDate").datepicker();
		}
	});

	$('#edit-projectkeyword-link').click(
			function() {
				loadDiv('content', 'showEditKeyword.do?id='
						+ $(this).attr('projectkeywordId'));
			});
	$('#view-cipeprojectsummary').click(
			function() {
				loadDiv('content', 'showCipeprojectSummary.do?id='
						+ $(this).attr('cipeprojectId'));
			});
	$('#mail-to-trigger')
			.click(
					function() {
						window.location = 'mailto:knowledgemanagement@cipe.org?Subject=Request%20a%20new%20\'Keyword\'%20be%20added%20to%20the%20list%20of%20Knowledge%20Management%20keywords';
					});
	$('.close-button').click(function() {
		//if (confirm('Are you sure you want to close the form?')) {
			window.location = '../secure/showDashboard.do';
		//}
	});
</script>
<div id="editKnowledgeManagementDiv">
	<form:form name="editKnowledgeManagementForm" id="editKnowledgeManagementForm" action="saveKnowledgeManagement.do" method="post" modelAttribute="cipeproject">
		<form:hidden id="hiddenId" path="id" />
		<div class="main_form">
			<div class="form_head">
				<input type="button" id="view-cipeprojectsummary" class="blue_btn" value="<spring:message code="editKnowledgeManagement.link.viewProjectGrant" />" cipeprojectId="${cipeproject.id}" /> <a href="#" class="close-button gray_btn floatR"
					tabindex="-1"
				>Close Form</a><br class="clear" />
			</div>
			<div class="form_cont">
				<table cellspacing="10" width="100%">
					<tr class="row">
						<td class="input-field" colspan="5"><%@ include file="/common/messages.jsp"%></td>
					</tr>
					<tr>
						<td style="vertical-align: top;">
							<table>
								<%--
								<tr class="row">
									<td class="label">&nbsp;</td>
									<td class="input-field" colspan="2"><spring:message code="editKnowledgeManagement.heading.project" /></td>
								</tr>
								 --%>
								<tr class="row">
									<td class="label"><spring:message code="editKnowledgeManagement.label.partner" /></td>
									<td class="input-field"><form:textarea id="partnerId" path="partner.partnerName" rows="2" cssClass="input-full-width text_grey" /> <form:errors path="partner.id" cssClass="error" /></td>
								</tr>
								<tr class="row">
									<td class="label"><spring:message code="editKnowledgeManagement.label.acronym" /></td>
									<td class="input-field"><form:input path="acronym" maxlength="50" cssClass="input-full-width text_grey" /> <form:errors path="acronym" cssClass="error" /></td>
								</tr>
								<%--
								<tr class="row">
									<td class="label"><spring:message code="editKnowledgeManagement.label.type" /></td>
									<td class="input-field"><form:input id="cipeprojecttypeId" path="cipeprojecttype.displayName" cssClass="input-full-width text_grey" /></td>
									<td><form:errors path="cipeprojecttype.id" cssClass="error" /></td>
								</tr>
								 --%>
								<tr class="row">
									<td class="label"><spring:message code="editKnowledgeManagement.label.projectID" /></td>
									<td class="input-field"><form:input path="projectID" maxlength="50" cssClass="input-full-width text_grey" /> <form:errors path="projectID" cssClass="error" /></td>
								</tr>
								<tr class="row">
									<td class="label"><spring:message code="editKnowledgeManagement.label.projectTitle" /></td>
									<td class="input-field"><form:textarea path="projectTitle" maxlength="100" rows="2" cssClass="input-full-width text_grey" /> <form:errors path="projectTitle" cssClass="error" /></td>
								</tr>
								<tr class="row">
									<td class="label"><spring:message code="editKnowledgeManagement.label.startDate" /></td>
									<td class="input-field"><form:input path="projectStartDate" cssClass="input-full-width text_grey" /> <form:errors path="projectStartDate" cssClass="error" /></td>
								</tr>
								<tr class="row">
									<td class="label"><spring:message code="editKnowledgeManagement.label.endDate" /></td>
									<td class="input-field"><form:input path="projectEndDate" cssClass="input-full-width text_grey" /> <form:errors path="projectEndDate" cssClass="error" /></td>
								</tr>
								<tr class="row">
									<td class="label"><spring:message code="editKnowledgeManagement.label.programOfficer" /></td>
									<td class="input-field"><form:input id="programOfficerId" path="programOfficer.fullName" cssClass="input-full-width text_grey" /> <form:errors path="programOfficer.id" cssClass="error" /></td>
								</tr>
								<%--
								<tr class="row">
									<td class="label"><spring:message code="editKnowledgeManagement.label.status" /></td>
									<td class="input-field"><form:input id="cipeprojectstatusId" path="cipeprojectstatus.displayName" cssClass="input-full-width text_grey" /></td>
									<td><form:errors path="cipeprojecttype.id" cssClass="error" /></td>
								</tr>
								 --%>
								<tr class="row">
									<td class="label"><spring:message code="editKnowledgeManagement.label.region" /></td>
									<td class="input-field"><form:input id="regionId" path="region.displayName" cssClass="input-full-width text_grey" /> <form:errors path="region.id" cssClass="error" /></td>
								</tr>
								<tr class="row">
									<td class="label"><spring:message code="editKnowledgeManagement.label.country" /></td>
									<td class="input-field"><form:input id="countryId" path="country.displayName" cssClass="input-full-width text_grey" /> <form:errors path="country.id" cssClass="error" /></td>
								</tr>
								<tr class="row">
									<td class="label"><spring:message code="editKnowledgeManagement.label.managementFunds" /></td>
									<td class="input-field"><form:input path="cipeFunds" cssClass="input-full-width text_grey" /><input type="text" value="&nbsp;" readonly="readonly" id="managementFundsLabel" class="uneditable input-full-width text_grey" tabindex="18" />
										<form:errors path="cipeFunds" cssClass="error" /></td>
								</tr>
								<%--
								<tr class="row">
									<td class="label">&nbsp;</td>
									<td class="input-field" colspan="2"><spring:message code="editKnowledgeManagement.heading.information" /></td>
								</tr>
								 --%>
								<tr class="row">
									<td class="label"><spring:message code="editKnowledgeManagement.label.organizationtype" /></td>
									<td class="input-field"><form:select id="organizationtypeId" path="organizationtype.id" cssClass="text_white">
											<form:option value="" label="Select" />
											<form:options items="${organizationtypeList}" itemValue="id" itemLabel="displayName" />
										</form:select> <form:errors path="organizationtype.id" cssClass="error" /></td>
								</tr>
								<tr class="row">
									<td class="input-field" colspan="2"><spring:message code="editKnowledgeManagement.heading.evaluation" /></td>
								</tr>
								<tr class="row">
									<td class="label"><spring:message code="editKnowledgeManagement.label.impact" /></td>
									<td class="input-field"><form:select id="projectimpactId" path="projectimpact" cssClass="text_white">
											<form:option value="" label="Select" />
											<form:option value="High" label="High" />
											<form:option value="Medium" label="Medium" />
											<form:option value="Low" label="Low" />
										</form:select> <form:errors path="projectimpact" cssClass="error" /></td>
								</tr>
								<tr class="row">
									<td class="label">&nbsp;</td>
									<td>
										<c:if test="${not empty allowedUiElements['Project Catalogue']['EDIT button']}">
											<input id="editButton" type="button" class="blue_btn" value="<spring:message code='button.edit' />" cipeprojectId="${cipeproject.id}" />
											<input id="cancelButton" type="button" class="blue_btn" value="<spring:message code='button.cancelEdit' />" cipeprojectId="${cipeproject.id}" />
										</c:if>										 
										<sj:submit id="loginFormSubmit" target="editKnowledgeManagementDiv" cssClass="blue_btn" key="button.save" validate="true"/>
									</td>
								</tr>
							</table>
						</td>
						<td style="vertical-align: top;">
							<table>
								<tr class="row">
									<td class="label">&nbsp;</td>
									<td class="input-field heading" colspan="1"><spring:message code="editKnowledgeManagement.heading.keyword" /></td>
								</tr>
								<tr class="row">
									<td class="tablesorter" colspan="2">
										<div id="scrollbar1">
											<div class="scrollbar">
												<div class="track">
													<div class="thumb">
														<div class="end"></div>
													</div>
												</div>
											</div>
											<div class="viewport">
												<div class="overview">
													<table>
														<tr>
															<td>
																<div id="cblist" style="font-weight: bold;">
																	<form:checkboxes id="keywordsId" items="${keywordList}" path="selectedKeywords" itemValue="id" itemLabel="displayName" cssClass="input-full-width text_white" />
																	<form:errors path="keywords" cssClass="error" />
																</div>
															</td>
														</tr>
													</table>
												</div>
											</div>
										</div>
									</td>
								</tr>
								<tr class="row">
									<td align="center" colspan="2"><input type="button" id="mail-to-trigger" class="blue_btn" value="<spring:message code="editKnowledgeManagement.link.suggest" />" /></td>
								</tr>
								<tr class="row">
									<td class="label">&nbsp;</td>
									<td class="input-field heading" colspan="1"><spring:message code="editKnowledgeManagement.heading.themes" /></td>
								</tr>
								<tr class="row">
									<td class="label" style="width:40%;"><spring:message code="editKnowledgeManagement.label.business" /></td>
									<td class="input-field"><form:input path="themebusassocdev" cssClass="input-full-width text_small"/> <spring:message code="label.percent"></spring:message> <form:errors path="themebusassocdev" cssClass="error" /></td>
								</tr>
								<tr class="row">
									<td class="label"><spring:message code="editKnowledgeManagement.label.legal" /></td>
									<td class="input-field"><form:input path="themelegalregreform" cssClass="input-full-width text_small" /> <spring:message code="label.percent"></spring:message> <form:errors path="themelegalregreform" cssClass="error" /></td>
								</tr>
								<tr class="row">
									<td class="label"><spring:message code="editKnowledgeManagement.label.women" /></td>
									<td class="input-field"><form:input path="themewomenyouth" cssClass="input-full-width text_small" /> <spring:message code="label.percent"></spring:message> <form:errors path="themewomenyouth" cssClass="error" /></td>
								</tr>
								<tr class="row">
									<td class="label"><spring:message code="editKnowledgeManagement.label.access" /></td>
									<td class="input-field"><form:input path="themeaccesstoinfo" cssClass="input-full-width text_small" /> <spring:message code="label.percent"></spring:message> <form:errors path="themeaccesstoinfo" cssClass="error" /></td>
								</tr>
								<tr class="row">
									<td class="label"><spring:message code="editKnowledgeManagement.label.informal" /></td>
									<td class="input-field"><form:input path="themeinformalsectorproperty" cssClass="input-full-width text_small" /> <spring:message code="label.percent"></spring:message> <form:errors path="themeinformalsectorproperty" cssClass="error" /></td>
								</tr>
								<tr class="row">
									<td class="label"><spring:message code="editKnowledgeManagement.label.corruption" /></td>
									<td class="input-field"><form:input path="themecorruption" cssClass="input-full-width text_small" /> <spring:message code="label.percent"></spring:message> <form:errors path="themecorruption" cssClass="error" /></td>
								</tr>
								<tr class="row">
									<td class="label"><spring:message code="editKnowledgeManagement.label.corporate" /></td>
									<td class="input-field"><form:input path="themecorporategovernance" cssClass="input-full-width text_small" /> <spring:message code="label.percent"></spring:message> <form:errors path="themecorporategovernance" cssClass="error" /></td>
								</tr>
								<tr class="row">
									<td class="label"><spring:message code="editKnowledgeManagement.label.democratic" /></td>
									<td class="input-field"><form:input path="themedemocraticgovernance" cssClass="input-full-width text_small" /> <spring:message code="label.percent"></spring:message> <form:errors path="themedemocraticgovernance" cssClass="error" /></td>
								</tr>
								<tr class="row">
									<td class="label">&nbsp;</td>
									<td class="input-field heading" colspan="1"><spring:message code="editKnowledgeManagement.heading.lines" /></td>
								</tr>
								<tr class="row">
									<td class="label"><spring:message code="editKnowledgeManagement.label.partnership" /></td>
									<td class="input-field"><form:input path="lowpartnership" cssClass="input-full-width text_small" /> <spring:message code="label.percent"></spring:message> <form:errors path="lowpartnership" cssClass="error" /></td>
								</tr>
								<tr class="row">
									<td class="label"><spring:message code="editKnowledgeManagement.label.development" /></td>
									<td class="input-field"><form:input path="lowproorgdevelopment" cssClass="input-full-width text_small" /> <spring:message code="label.percent"></spring:message> <form:errors path="lowproorgdevelopment" cssClass="error" /></td>
								</tr>
								<tr class="row">
									<td class="label"><spring:message code="editKnowledgeManagement.label.advocacy" /></td>
									<td class="input-field"><form:input path="lowcipeadvocacy" cssClass="input-full-width text_small" /> <spring:message code="label.percent"></spring:message> <form:errors path="lowcipeadvocacy" cssClass="error" /></td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</div>
		</div>
	</form:form>
</div>